import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'flutter_face_plugin_platform_interface.dart';

/// An implementation of [FlutterFacePluginPlatform] that uses method channels.
class MethodChannelFlutterFacePlugin extends FlutterFacePluginPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('flutter_face_plugin');

  @override
  Future<String?> getPlatformVersion() async {
    final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
    return version;
  }

  @override
  Future<dynamic> faceInit() async{
   return await methodChannel.invokeMethod('faceInit');
  }
  @override
  Future<String?> getMetainfo() async{
    return await methodChannel.invokeMethod('getMetainfo');
  }
  @override
  Future<dynamic?> startVerify(String token) async{
    return await methodChannel.invokeMethod('startVerify',{'token':token});
  }

}
